//
//  Login.m
//  mediamaster
//
//  Created by season02.
//  Copyright (c) 2015年 season02. All rights reserved.
//

#import "QQEntity.h"

@implementation QQEntity

-(void)setOpenId:(NSString *)openId
{
    _openId = openId;
    _unionid = openId;
    [super setUserId:openId];
}

-(void)setFigureurl_qq_2:(NSString *)figureurl_qq_2
{
    _figureurl_qq_2 = figureurl_qq_2;
    [super setHeadimgurl:figureurl_qq_2];
}

-(void)setGender:(NSString *)gender
{
    _gender = gender;
    
    if([gender isEqualToString:@"男"] && gender != nil)
    {
        [super setSex:@"male"];
    }
    else if([gender isEqualToString:@"女"] && gender != nil)
    {
        [super setSex:@"female"];
    }
}

@end
